package com.example.mvp.presenter

import androidx.lifecycle.DefaultLifecycleObserver
import com.example.mvp.view.IBaseView

abstract class IBasePresenter<V: IBaseView>: DefaultLifecycleObserver {
    protected var view: IBaseView? = null

    fun onAttachView(view: V) {
        this.view = view
    }

    fun onDetachView() {
        this.view = null
    }
}